﻿using System;
using System.Collections.Generic;
using System.Data.Objects.SqlClient;
using System.Linq;
using System.Reflection;
using System.Text;
using ZBJF.Warranty.Common.Common;
using ZBJF.Warranty.Common.Enums.System;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.BaseQueryModel;
using ZBJF.Warranty.Model.ViewModel.Log;

namespace ZBJF.Warranty.BLL
{
    public partial class OpreateFinanceLogsService
    {
        public IQueryable<OpreateFinanceLogs> GetPagingList(OpreateFinanceLogsModel model, out int total)
        {
            var whereExpression = PredicateExtensions.True<OpreateFinanceLogs>();
            if (!string.IsNullOrEmpty(model.iSorts))
            {
                model.iSorts = "id asc";
            }
            return LoadPagerEntities<OpreateFinanceLogs>(model.PageIndex, model.iDisplayLength, out total,
                whereExpression, model.iSorts);
        }
    }
}
